﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="ListTaxonomies.aspx.cs" Inherits="NhanAi.Admin.ListTaxonomies" %>

<%@ Register Src="~/Admin/PagingBar.ascx" TagName="PagingBar" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   <h3>Danh sách chủ đề</h3>
     <form runat="server" id="frmUpdate">
        <asp:Button ID="btnUpdateMenu" runat="server" CssClass="pan-button bold" Text="Cập nhật menu" style="margin-bottom:10px;" OnClick="btnUpdateMenu_Click" />
    </form>
    <form id="form" action="ListTaxonomies.aspx" method="post">        
        <table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
            <tr>
                <th class="table-header-check">
                    <input type="checkbox" id="check-all" />
                </th>
                <th class="table-header-repeat line-left">
                    <a href="">Tên chủ đề</a>
                </th>
                <th class="table-header-repeat line-left">
                    <a href="">Mô tả</a>
                </th>
                <th class="table-header-repeat line-left">
                    <a href="">Chủ đề cha</a>
                </th>

                <th class="table-header-options line-left"></th>
            </tr>

            <asp:Repeater ID="rptTaxonomy" runat="server">
                <ItemTemplate>
                    <tr>
                        <td>
                            <input type="checkbox" id="ids<%#Eval("Id")%>" value="<%#Eval("Id")%>" name="ids" />
                        </td>

                        <td>
                            <a href='ListTaxonomies.aspx?parent=<%#Eval("Id") %>'>
                            <%# Eval("TermName") %></a>
                        </td>
                        <td>
                            <%# Eval("Description")%>
                        </td>
                        <td>
                            <a href="/Admin/EditTaxonomy.aspx?id=<%#Eval("ParentId") %>"><%#Eval("ParentId").ToString()!="0"?"Xem":"[N/A]" %></a>
                        </td>
                        <td>
                            <a href="/Admin/EditTaxonomy.aspx?id=<%#Eval("Id") %>">Chỉnh sửa</a>

                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>

        </table>
    </form>
    <uc2:PagingBar ID="paging" runat="server"></uc2:PagingBar>
</asp:Content>
